import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist' //导入插件
import App from './App.vue'
import router from './router.js'
const pinia = createPinia()
const app = createApp(App)
app.use(pinia)
pinia.use(piniaPersist)   //使用插件
app.use(router)
app.mount('#app')